Optimal. Leaf size=403 \[ -\frac{\sqrt{2} \sqrt{c} \left (-2 a \left (e \left (d \sqrt{b^2-4 a c}-a e\right )+c d^2\right )+b d \left (d \sqrt{b^2-4 a c}-2 a e\right )+b^2 d^2\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}\right )}{a^2 \sqrt{b^2-4 a c} \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}+\frac{\sqrt{2} \sqrt{c} \left (-2 a \left (c d^2-e \left (d \sqrt{b^2-4 a c}+a e\right )\right )-b d \left (d \sqrt{b^2-4 a c}+2 a e\right )+b^2 d^2\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}\right )}{a^2 \sqrt{b^2-4 a c} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}+\frac{2 \sqrt{d} (b d-2 a e) \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{a^2}-\frac{d \sqrt{d+e x}}{a x}+\frac{\sqrt{d} e \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 3.07458, antiderivative size = 402, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {897, 1287, 199, 206, 1166, 208} \[ -\frac{\sqrt{2} \sqrt{c} \left (b d \left (d \sqrt{b^2-4 a c}-2 a e\right )-2 a e \left (d \sqrt{b^2-4 a c}-a e\right )-2 a c d^2+b^2 d^2\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}\right )}{a^2 \sqrt{b^2-4 a c} \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}+\frac{\sqrt{2} \sqrt{c} \left (-b d \left (d \sqrt{b^2-4 a c}+2 a e\right )+2 a e \left (d \sqrt{b^2-4 a c}+a e\right )-2 a c d^2+b^2 d^2\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}\right )}{a^2 \sqrt{b^2-4 a c} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}+\frac{2 \sqrt{d} (b d-2 a e) \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{a^2}-\frac{d \sqrt{d+e x}}{a x}+\frac{\sqrt{d} e \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 897
Rule 1287
Rule 199
Rule 206
Rule 1166
Rule 208
Rubi steps
\begin{align*} \int \frac{(d+e x)^{3/2}}{x^2 \left (a+b x+c x^2\right )} \, dx &=\frac{2 \operatorname{Subst}\left (\int \frac{x^4}{\left (-\frac{d}{e}+\frac{x^2}{e}\right )^2 \left (\frac{c d^2-b d e+a e^2}{e^2}-\frac{(2 c d-b e) x^2}{e^2}+\frac{c x^4}{e^2}\right )} \, dx,x,\sqrt{d+e x}\right )}{e}\\ &=\frac{2 \operatorname{Subst}\left (\int \left (\frac{d^2 e^2}{a \left (d-x^2\right )^2}-\frac{d e (-b d+2 a e)}{a^2 \left (d-x^2\right )}+\frac{e \left (-(b d-a e) \left (c d^2-b d e+a e^2\right )+c d (b d-2 a e) x^2\right )}{a^2 \left (c d^2-b d e+a e^2-(2 c d-b e) x^2+c x^4\right )}\right ) \, dx,x,\sqrt{d+e x}\right )}{e}\\ &=\frac{2 \operatorname{Subst}\left (\int \frac{-(b d-a e) \left (c d^2-b d e+a e^2\right )+c d (b d-2 a e) x^2}{c d^2-b d e+a e^2+(-2 c d+b e) x^2+c x^4} \, dx,x,\sqrt{d+e x}\right )}{a^2}+\frac{\left (2 d^2 e\right ) \operatorname{Subst}\left (\int \frac{1}{\left (d-x^2\right )^2} \, dx,x,\sqrt{d+e x}\right )}{a}+\frac{(2 d (b d-2 a e)) \operatorname{Subst}\left (\int \frac{1}{d-x^2} \, dx,x,\sqrt{d+e x}\right )}{a^2}\\ &=-\frac{d \sqrt{d+e x}}{a x}+\frac{2 \sqrt{d} (b d-2 a e) \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{a^2}+\frac{(d e) \operatorname{Subst}\left (\int \frac{1}{d-x^2} \, dx,x,\sqrt{d+e x}\right )}{a}+\frac{\left (c \left (b^2 d^2-2 a c d^2+b d \left (\sqrt{b^2-4 a c} d-2 a e\right )-2 a e \left (\sqrt{b^2-4 a c} d-a e\right )\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{2} \sqrt{b^2-4 a c} e+\frac{1}{2} (-2 c d+b e)+c x^2} \, dx,x,\sqrt{d+e x}\right )}{a^2 \sqrt{b^2-4 a c}}-\frac{\left (c \left (b^2 d^2-2 a c d^2+2 a e \left (\sqrt{b^2-4 a c} d+a e\right )-b d \left (\sqrt{b^2-4 a c} d+2 a e\right )\right )\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{1}{2} \sqrt{b^2-4 a c} e+\frac{1}{2} (-2 c d+b e)+c x^2} \, dx,x,\sqrt{d+e x}\right )}{a^2 \sqrt{b^2-4 a c}}\\ &=-\frac{d \sqrt{d+e x}}{a x}+\frac{\sqrt{d} e \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{a}+\frac{2 \sqrt{d} (b d-2 a e) \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{a^2}-\frac{\sqrt{2} \sqrt{c} \left (b^2 d^2-2 a c d^2+b d \left (\sqrt{b^2-4 a c} d-2 a e\right )-2 a e \left (\sqrt{b^2-4 a c} d-a e\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-\left (b-\sqrt{b^2-4 a c}\right ) e}}\right )}{a^2 \sqrt{b^2-4 a c} \sqrt{2 c d-\left (b-\sqrt{b^2-4 a c}\right ) e}}+\frac{\sqrt{2} \sqrt{c} \left (b^2 d^2-2 a c d^2+2 a e \left (\sqrt{b^2-4 a c} d+a e\right )-b d \left (\sqrt{b^2-4 a c} d+2 a e\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e}}\right )}{a^2 \sqrt{b^2-4 a c} \sqrt{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e}}\\ \end{align*}
Mathematica [A] time = 1.58731, size = 393, normalized size = 0.98 \[ \frac{\frac{\sqrt{2} \sqrt{c} \left (2 a \left (e \left (d \sqrt{b^2-4 a c}-a e\right )+c d^2\right )+b d \left (2 a e-d \sqrt{b^2-4 a c}\right )-b^2 d^2\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{e \sqrt{b^2-4 a c}-b e+2 c d}}\right )}{\sqrt{b^2-4 a c} \sqrt{e \left (\sqrt{b^2-4 a c}-b\right )+2 c d}}-\frac{\sqrt{2} \sqrt{c} \left (b d \left (d \sqrt{b^2-4 a c}+2 a e\right )-2 a e \left (d \sqrt{b^2-4 a c}+a e\right )+2 a c d^2-b^2 d^2\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}\right )}{\sqrt{b^2-4 a c} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}+2 \sqrt{d} (b d-2 a e) \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )-\frac{a d \sqrt{d+e x}}{x}+a \sqrt{d} e \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.293, size = 1215, normalized size = 3. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]